#! /bin/bash

# build server
cd backend
mkdir -p build &&
cd build &&
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} .. &&
make -j8 &&
sudo make install &&
# valgrind --leak-check=full -v --tool=memcheck --show-reachable=yes --track-origins=yes --log-file=./x.log app_server
app_server
